﻿@model IEnumerable<OurWedding1.Models.GuestInExpense>
@using OurWedding1

<table style="width: 100%" id="discountList">
    <thead>
        <tr>
            <th>
                @Html.DisplayNameFor(m => m.Guest)
            </th>
            <th>
                @Html.DisplayNameFor(m => m.Discount)
            </th>
            <th></th>
        </tr>
    </thead>

    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @(item.Guest == null ? "None" : item.Guest.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Discount)
                </td>
               
                <td style="text-align: right">
                    @Html.ActionLink(Resources.Edit, "EditByExpense", new { id = item.GuestInExpenseId }, new { @class = "editDIconLink" })
                    @Html.ActionLink(Resources.Delete, "DeleteAjax", new { id = item.GuestInExpenseId }, new { @class = "deleteIconLink" })
                </td>

            </tr>
        }
    </tbody>

</table>


